package com.healthcarex.hip.saas.message.processor;


import com.healthcarex.hip.saas.message.core.AbstractMessage;
import com.healthcarex.hip.saas.message.core.MessageModel;
import com.healthcarex.hip.saas.message.schema.MessageSchemaDefinition;

import javax.xml.parsers.ParserConfigurationException;

/**
 * 消息解析器
 */
public interface IMessageProcessor {

    /**
     * @param message
     * @param msd     msd
     */
    AbstractMessage generate(MessageModel message,
                             MessageSchemaDefinition msd);

    String getMessageType();

    /**
     * @param message message
     */
    MessageModel parse(AbstractMessage message) throws Exception;
}
